package com.github.nuggets.model.exception;

import com.github.nuggets.model.result.ResultInfoEnum;
import lombok.Data;

/**
 * @description:
 * @author: wangsj
 * @date: 2022/3/17 8:18 下午
 */
@Data
public class BizException extends BaseException{

    public BizException() {
        super(ResultInfoEnum.BIZ_FAIL);
    }

    public BizException(String msg){
        super(ResultInfoEnum.BIZ_FAIL.getResultCode(),msg);
    }

    public BizException(String msg,Throwable cause){
        super(ResultInfoEnum.BIZ_FAIL.getResultCode(),msg,cause);
    }

    public BizException(Throwable cause){
        super(ResultInfoEnum.BIZ_FAIL,cause);
    }
}
